feat(nft): emit canonical URN alongside https url in NFT mint uris - #24
Merged
Conversation
Emit the canonical bare root-pinned URN alongside the https gateway url in NFT data_uris/metadata_uris (NFT1 multi-url backup, #663). Co-Authored-By: Claude <noreply@anthropic.com>
The NFT mint now sets the on-chain NFT1 data_uris/metadata_uris to BOTH the canonical bare root-pinned URN urn:dig:chia:<storeId>:<root>/<key> (primary) AND an https gateway url (fallback) — the NFT1 multi-url backup pattern (#663). DIG-aware wallets resolve the URN natively; legacy wallets (Sage) use the https url. Fixes the #686 double-scheme bug: the primary entry was a dig://-prefixed URN, now the canonical bare form (coheres with chip35 #688 / hub #690 / create-dig-app #689). - assets: rename dig_uri -> urn (bare canonical via digstore_core::Urn); add media_uris returning [urn, https gateway url] - nft: always emit both; --gateway overrides the default https://rpc.dig.net - SPEC 11.4 documents the mint media-uri contract - version 0.14.0 -> 0.15.0 (MINOR, additive) Refs DIG-Network/dig_ecosystem#663 Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes DIG-Network/dig_ecosystem#663 (super-repo tracking).
What
dig-store NFT mint now emits BOTH the canonical bare root-pinned URN
urn:dig:chia:<storeId>:<root>/<key>(first, primary) AND anhttps://gateway url (second, fallback) in the NFT1data_uris/metadata_urisarrays — the NFT1 multi-url backup pattern. DIG-aware wallets use the URN; legacy wallets (Sage) use the https fallback.Also fixes the #686 double-scheme bug: the primary entry was a
dig://-prefixed URN, which is NOT the canonical resource-identifier form. It is now the bareurn:dig:chia:…per the canonical #686 rule (coheres with chip35 #688 / hub #690 / create-dig-app #689).Blast radius
Contained in
digstore-cli:assets::dig_uri(renamedassets::urn) called only fromcommands/nft.rs(2 sites) + its own unit test. No cross-crate consumers.Version
MINOR 0.14.0 -> 0.15.0 (additive new capability; §5.1 additive — old readers still parse the arrays).
WIP — draft.